<?php

class CurrencyComponent extends BlueprintComponent {
	
	
	function parse(&$element, $value, $text = '?') {
		$doc = $element->document;
		
		$php = '"' . str_replace('?', "\" . money_format('%n', $value) . \"", $text) . "\"";
		
		$element->childNodes = array($doc->createPHPTextNode($php));
	}
}
?>